<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>

<%@include file="/WEB-INF/jsp/head.jsp"%>


<script type="text/javascript" src="<%=basePath%>static/js/jquery-1.12.4.js"></script>

<div class="right">
            <div class="location">
                <strong>你现在所在的位置是:</strong>
                <span>密码修改页面</span>
            </div>
            <div class="providerAdd">
                <form id="userForm" name="userForm" method="post" action="">
                    <input type="hidden" name="method" value="savepwd">
                    <!--div的class 为error是验证错误，ok是验证成功-->
                    <div class="info">${message}</div>
                    <div class="">
                        <label for="oldPassword">旧密码：</label>
                        <input type="password" name="oldpassword" id="oldpassword" value=""> 
						<font color="red"></font>
                    </div>
                    <div>
                        <label for="newPassword">新密码：</label>
                        <input type="password" name="newpassword" id="newpassword" value=""> 
						<font color="red"></font>
                    </div>
                    <div>
                        <%--@declare id="renewpassword"--%>
                        <label for="reNewPassword">确认新密码：</label>
                        <input type="password" name="rnewpassword" id="rnewpassword" value=""> 
						<font color="red"></font>
                    </div>
                    <div class="providerAddBtn">
                        <!--<a href="#">保存</a>-->
                        <input type="button" name="save" id="save" value="保存" class="input-button">
                    </div>
                </form>
            </div>
        </div>
<script type="text/javascript" >
    $(function (){
        $(".input-button").click(function (){
            var password=$("#rnewpassword").val()
            var account="123456"

            $.ajax({
                url:"updateg",
                type:"post",
                data:{
                    account:account,
                    password:password
                },
                dataType:"json",
                success:function (data){
                    alert(1)
                }
            })
        })
    })

</script>
<%@include file="/common/foot.jsp" %>
